package com.woniu.smallmedical.mapper;

import com.woniu.smallmedical.entity.Registration;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RegistrationMapper {
    //增加换号表
    void AddRegistration(Registration registration);

    //通过患者id查询挂号信息
    Registration getBySickid(int sickid);

    //通过患者的id来修改挂号表信息
    void updateBySickid(@Param("sickid") int sickid,
                        @Param("registration") Registration registration);

    //患者挂号信息展示查询
    List<Registration> registrations(@Param("registration") Registration registration,
                                                 @Param("startTime")String startTime,
                                                 @Param("endTime")String endTime);

    Registration getBypatientnumber(int patientinformation);
}
